/**
 * @filename:InspectService Jan 15, 2025
 * @project Wonder Vue Admin Api  1.1.0
 * Copyright(c) 2022 Wonder Co. Ltd. 
 * All right reserved. 
 */
package com.wonder.app.service;
import cn.hutool.json.JSONObject;
import com.vtuzx.core.bean.dto.VtuzxMap;
import com.wonder.app.domain.Inspect;
import com.wonder.app.request.InspectRequest;
import com.wonder.common.common.AjaxResult;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;
/**   
 * @Description:TODO(来料检验单服务层)
 * @version: 1.1.0
 * @author: Wonder
 * 
 */
public interface InspectService extends IService<Inspect> {

    
    /**
     * 验证来料检验单信息
     * 
     * @param inspect
     * @param type
     * @return 结果
     */
    public String validate(Inspect inspect,String type);   
   
	
	 /**
	 * Description:来料检验单分页返回
	 * @param request//检索条件
	 * @param page//分页参数
	 * @return IPage<Inspect>   //分页记录
	 */
    public IPage<Inspect> selectList(InspectRequest request, Page<Inspect> page);

	boolean auditInspect(Long user_id, String userName,Map<String, Object> map) throws Exception;

	

	/**
	 * 详情purin
	 * @param map
	 * @return
	 */
	Map<String, Object> getInspectDetail(Map<String, Object> map) throws Exception;

	/**
	 * 生成来料检验单
	 * @param
	 * @param map
	 * @return
	 */
	boolean saveInspect(Long user_id, String userName, Map<String, Object> map) throws Exception;

	/**
	 * 来料检验单列表(手机端)
	 * @param map
	 * @return
	 */
	Map<String, Object> getInspectList(Map<String, Object> map);

	/**
	 * 来料检验单详情(手机端)
	 * @param map
	 * @return
	 * @throws Exception
	 */
	Map<String, Object> getInspectDetailPhone(Map<String, Object> map) throws Exception;

	/**
	 * 修改检验单详情是否检验的状态
	 * @param userName
	 * @param map
	 * @return
	 */
	boolean changeInspectIsChecked(String userName, Map<String, Object> map);

	/**
	 * 修改来料检验单上的收料单号
	 * @param map
	 * @return
	 */
    Boolean changeInspectReceive(JSONObject map);
}
